package class0820;

/**
 * @Author:galaxy_yan
 * @Date: 2022/8/21
 * @Time: 9:59
 * @Description
 * 类的定义
 */

public class WashMachine{
    public String brand; // 品牌

    public double weight; // 重量

    public String color; // 颜色

    public void WashClothes() { // 洗衣服
         System.out.println("洗衣功能");
    }

    public void dryClothes(){ // 脱水
         System.out.println("脱水功能");
    }

    public void SetTime() { // 定时
         System.out.println("定时功能");
    }

    public static void main(String[] args) {
        WashMachine washMachine=new WashMachine();
        washMachine.brand="海尔";
        washMachine.weight=150.0;
        washMachine.color="white";

        washMachine.WashClothes();
        washMachine.dryClothes();
        washMachine.SetTime();
    }
}
